<?
layout("/inc/layout.html",{title:sysTitle}){
?>

<div id="page-wrapper">
      <!--BEGIN TITLE & BREADCRUMB PAGE-->
      <div id="title-breadcrumb-option-demo" class="page-title-breadcrumb">
          <div class="page-header pull-left">
              <div class="page-title">数据集查询</div>
          </div>
          <ol class="breadcrumb page-breadcrumb pull-left">
              <li><i class="fa fa-home"></i>&nbsp;<a href="main.html">首页</a>&nbsp;&nbsp;<i class="fa fa-angle-right"></i>&nbsp;&nbsp;</li>
              <li>数据集查询&nbsp;&nbsp;&nbsp;&nbsp;</li>
              
          </ol>
           
          <div class="clearfix"></div>
      </div>
      <!--END TITLE & BREADCRUMB PAGE-->
      <!--BEGIN CONTENT-->
      <div id="page-content" class="page-content">
    </div>
    </div>
    
  <script>
  $(function() {
		demo1();	
	});
  function demo1() {
		$.getJSON('./KnowledgeDataRegisteredit.do',
				{
					id : 0
				//向服务端传的参数，此处只是演示
				}, function(res) {
				
					if(res[0].id=="")
					{
					$("#page-content").html("");
					$("#page-content").append("该用户没有注册信息");
					}else{
					var str = "";   
					 str +="<div id=\"invoice-page\" class=\"row\"><div class=\"col-md-12\">"
                          +"<div class=\"panel\">"
                           +"<div class=\"panel-body\">"
                           +"<div class=\"invoice-title\">"
                           + "<h2>单位</h2>"
                           + "<p class=\"mbn text-left\"><label id=\"individualName\"></label></p>"
                           + "<p class=\"text-left\"><label id=\"organizationName\"></label></p>"
                           + "</div>"
                           + "<div class=\"pull-left\">"
                           + "<h2 class=\"text-green logo\"><label id=\"createUserId\"></label></h2>"          
                           + "数据集名称:<label id=\"datasetName\"></label><br/>"
                           +  "数据集数量:<label id=\"recordNum\"></label><br/>"
                           +"更新周期:<label id=\"updateFreq\"></label><br/>"
                           + "更新时间:<label id=\"updateTime\"></label><br/>"
                           + "</div>"
                           +"<div class=\"clearfix\"></div>"
                           + "<hr/>"
                           +"<div class=\"row\">"
                           +"<div class=\"col-md-3\"><address><strong>类别名称:</strong><label id=\"categoryName\"></label></address></div>"
                           +" <div class=\"col-md-3\"><address><strong>类别编码:</strong><label id=\"categoryCode\"></label></address></div>"
                           +"<div class=\"col-md-3\"><address><strong>分类标准:</strong><label id=\"categoryType\"></label></address></div>"
                           +" <div class=\"col-md-3\"><address><strong>数据编码:</strong><label id=\"characterSet\"></label></address></div>"
                           +"<div class=\"col-md-3\"><address><strong>语种:</strong><label id=\"language\"></label></address></div>"
                           +"<div class=\"col-md-3\"><address><strong>关键词:</strong><label id=\"keywords\"></label></address></div>"
                           +"<div class=\"col-md-3\"><address><strong>摘要:</strong><label id=\"abstracts\"></label></address></div> </div>"
                           +"<hr/><div class=\"row\">"
                           +"  <div class=\"col-md-3\"><address><strong>固话:</strong><label id=\"telephone\"></label></address> </div>"
                           +" <div class=\"col-md-3\"><address><strong>手机:</strong><label id=\"mobilePhone\"></label></address></div>"
                           +" <div class=\"col-md-3\"><address><strong>传真:</strong><label id=\"fax\"></label></address></div>"
                           +" <div class=\"col-md-3\"><address><strong>邮政编码:</strong><label id=\"postalCode\"></label></address></div>"
                           +"<div class=\"col-md-6\"><address><strong>Email:</strong><label id=\"email\"></label></address></div>"
                           +"<div class=\"col-md-6\"><address><strong>详细地址:</strong><label id=\"address\"></label></address> </div>"
                            +" <div class=\"col-md-3\"><address><strong>安全级别:</strong><label id=\"securityLevel\"></label></address></div> "
                            +"<div class=\"col-md-3\"><address><strong>操作权限:</strong><label id=\"operatingAuthorization\"></label></address></div>"
                            +"<div class=\"col-md-3\"><address><strong>计费标识:</strong><label id=\"chargeId\"></label></address></div>"
                           +"</div></div></div></div></div></div>";
                           $("#page-content").append(str);
					document.getElementById('createUserId').innerHTML=res[0].createUser.name;
					document.getElementById('individualName').innerHTML=res[0].individualName;
					document.getElementById('organizationName').innerHTML=res[0].organizationName;
					document.getElementById('datasetName').innerHTML=res[0].datasetName;
					document.getElementById('recordNum').innerHTML=res[0].recordNum;
					document.getElementById('updateFreq').innerHTML=res[0].updateFreq;
					document.getElementById('updateTime').innerHTML=res[0].updateTime;
					document.getElementById('categoryName').innerHTML=res[0].categoryName;
					document.getElementById('categoryCode').innerHTML=res[0].categoryCode;
					document.getElementById('categoryType').innerHTML=res[0].categoryType;
					document.getElementById('characterSet').innerHTML=res[0].characterSet;
					document.getElementById('language').innerHTML=res[0].language;
					document.getElementById('keywords').innerHTML=res[0].keywords;
					document.getElementById('abstracts').innerHTML=res[0].abstracts;
					
					document.getElementById('telephone').innerHTML=res[0].telephone;
					document.getElementById('mobilePhone').innerHTML=res[0].mobilePhone;
					document.getElementById('fax').innerHTML=res[0].fax;
					document.getElementById('email').innerHTML=res[0].email;
					document.getElementById('address').innerHTML=res[0].address;
					document.getElementById('postalCode').innerHTML=res[0].postalCode;
					document.getElementById('securityLevel').innerHTML=res[0].securityLevel;
					document.getElementById('operatingAuthorization').innerHTML=res[0].operatingAuthorization;
				document.getElementById('chargeId').innerHTML=res[0].chargeId;
					}
				});
	};
		</script>
<?} ?>

